<?php
namespace app\common\validate\Subject;
use think\Validate;
class Comment extends Validate{
    protected $rule = [
        'content' => ['require'],
        'busid' => ['require'],
        'subid'=>['require'],
    ];

    // 错误提示信息
    protected $message = [
        'content.require' => '评价内容必填',
        'subid.require' => '课程id必填',
        'busid.require' => '用户id必填'
    ];
}